<?php

	/**
	 * @see Bike_Js_Ext_form_field_Text
	 */
	require_once 'Bike/Js/Ext/form/field/Text.php';
	
	
	class Bike_Js_Ext_form_field_Number extends Bike_Js_Ext_form_field_Text
	{
		static protected $_xType = 'numberfield';

		protected function initDefaultSettings()
		{
			parent::initDefaultSettings();
		
			$js = $this->js();
			$this->setSettings(array(
				'maxText' => $this->translate('The maximum value for this field is {0}'),
               	'minText' => $this->translate('The minimum value for this field is {0}'),
               	'nanText' => $this->translate('{0} is not a valid number'),
               	'negativeText' => $this->translate('The value cannot be negative'),
               	'autoStripChars' => True,
               	'decimalPrecision' => 3,
               	'decimalSeparator' => '.',
			));
		}
	}
